package com.example.emailcraft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.emailcraft.entity.UserRoles;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author scj
 * @since 2025-01-21
 */
@Mapper
public interface UserRolesMapper extends BaseMapper<UserRoles> {
    @Insert("INSERT INTO user_roles (user_id, role_id) VALUES (#{userId}, #{roleId})")
    void insert(Integer userId, Integer roleId);

}
